package HibernateFacet.second;


import java.math.BigDecimal;
import java.util.Date;

public class DeviceData  implements java.io.Serializable{
    private Integer id;
    private Integer deviceId;
    private Double aElectricity; //A相电流
    private Double aVoltage; //A相电压

    private Double bElectricity;
    private Double bVoltage;

    private Double cElectricity;
    private Double cVoltage;

    private Integer aPower; //a相功率
    private Integer bPower;
    private Integer cPower;
    private Integer sumPower; //总功率

    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Double getaElectricity() {
        return aElectricity;
    }

    public void setaElectricity(Double aElectricity) {
        this.aElectricity = aElectricity;
    }

    public Double getaVoltage() {
        return aVoltage;
    }

    public void setaVoltage(Double aVoltage) {
        this.aVoltage = aVoltage;
    }

    public Double getbElectricity() {
        return bElectricity;
    }

    public void setbElectricity(Double bElectricity) {
        this.bElectricity = bElectricity;
    }

    public Double getbVoltage() {
        return bVoltage;
    }

    public void setbVoltage(Double bVoltage) {
        this.bVoltage = bVoltage;
    }

    public Double getcElectricity() {
        return cElectricity;
    }

    public void setcElectricity(Double cElectricity) {
        this.cElectricity = cElectricity;
    }

    public Double getcVoltage() {
        return cVoltage;
    }

    public void setcVoltage(Double cVoltage) {
        this.cVoltage = cVoltage;
    }

    public Integer getaPower() {
        return aPower;
    }

    public void setaPower(Integer aPower) {
        this.aPower = aPower;
    }

    public Integer getbPower() {
        return bPower;
    }

    public void setbPower(Integer bPower) {
        this.bPower = bPower;
    }

    public Integer getcPower() {
        return cPower;
    }

    public void setcPower(Integer cPower) {
        this.cPower = cPower;
    }

    public Integer getSumPower() {
        return sumPower;
    }

    public void setSumPower(Integer sumPower) {
        this.sumPower = sumPower;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "DeviceData{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", aElectricity=" + aElectricity +
                ", aVoltage=" + aVoltage +
                ", bElectricity=" + bElectricity +
                ", bVoltage=" + bVoltage +
                ", cElectricity=" + cElectricity +
                ", cVoltage=" + cVoltage +
                ", aPower=" + aPower +
                ", bPower=" + bPower +
                ", cPower=" + cPower +
                ", sumPower=" + sumPower +
                ", createTime=" + createTime +
                '}';
    }
}
